package com.kandinfo.isbnmanage.domian;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

import com.kandinfo.base.admin.domain.BaseDomain;

/**
 * @todo 作业本图片上传临时存储表
 * @author weiwang
 */
@Entity
@Table(name = "homework_temporary")
public class HomeworkTemporary extends BaseDomain implements Serializable{

	private static final long serialVersionUID = 1L;
	
	@Column(name = "homework_id")
    private Long homeworkId;
	
	@Column(name = "page_image_url")
	private String pageImageUrl;
	
	@Column(name = "has_answer")
	private String hasAnswer;
	
	@Column(name = "status")
	private String status;
	
	@Column(name = "is_cover")
	private String isCover;
	
	@Column(name = "barcode")
	private String barcode;
	
	@Column(name = "file_name")
	private String fileName;

	@Column(name = "file_size")
	private Long fileSize;

	public Long getHomeworkId() {
		return homeworkId;
	}

	public void setHomeworkId(Long homeworkId) {
		this.homeworkId = homeworkId;
	}

	public String getPageImageUrl() {
		return pageImageUrl;
	}

	public void setPageImageUrl(String pageImageUrl) {
		this.pageImageUrl = pageImageUrl;
	}

	public String getHasAnswer() {
		return hasAnswer;
	}

	public void setHasAnswer(String hasAnswer) {
		this.hasAnswer = hasAnswer;
	}

	public String getStatus() {
		return status;
	}

	public void setStatus(String status) {
		this.status = status;
	}

	public String getIsCover() {
		return isCover;
	}

	public void setIsCover(String isCover) {
		this.isCover = isCover;
	}
	
	public String getBarcode() {
		return barcode;
	}

	public void setBarcode(String barcode) {
		this.barcode = barcode;
	}
	
	public String getFileName() {
		return fileName;
	}

	public void setFileName(String fileName) {
		this.fileName = fileName;
	}

	public Long getFileSize() {
		return fileSize;
	}

	public void setFileSize(Long fileSize) {
		this.fileSize = fileSize;
	}

	@Override
	public String toString() {
		return "HomeworkTemporary [homeworkId=" + homeworkId + ", pageImageUrl=" + pageImageUrl + 
				", hasAnswer=" + hasAnswer + ", status=" + status + ", isCover=" + isCover +  
				", fileName=" + fileName + ", fileSize=" + fileSize + "]";
	}
	
}
